import { createSlice } from '@reduxjs/toolkit'
import { getMap } from '../common/map'
export const mapSlice = createSlice({
  name: 'map',
  initialState: {
    map: undefined,
    smallMap: undefined,
  },
  reducers: {
    setMap(state, { map }) {
      state.map = map
    },
    setSmallmap(state, { map }) {
      state.smallMap = map
    },
  },
})
